package cn.gong.jizhang.utils;

import java.io.File;

public class FileUtils {
	public static void deleteDirs(File dir){
		while (dir.list().length<=0) {
			dir.delete();
			dir=dir.getParentFile();
		}
	}
}
